﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Agr.CQRS" namespace="Agr.CQRS.Infrastructure.Events">
  <class name="StoredDomainEvent" table="DomainEvents" lazy="false">
    <id type="int" name="Id">
      <generator class="native"/>
    </id>
    <property name="AggregateRootId" />
    <property name="Version"/>
    <property name="EntityNumber"/>
    <property name="SerializedEvent"/>
  </class>


  <class name="DomainEventPointer" lazy="false">
    <id type="int">
      <generator class="native"/>
    </id>
    <property name="PollerName" />
    <property name="LastSeenId"/>
  </class>

</hibernate-mapping>
